﻿
using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Xsl;
using InfoJetSoft.Service.Util;

namespace InfoJetSoft.Service.Entity
{
	
	public class View
	{
		public Manifest Manifest
		{
			get
			{
				return manifest;
			}
			
			set
			{
				this.manifest = value;
			}
			
		}
		
		public ArrayList MasterNameList
		{
			get
			{
				return masterNameList;
			}
			
			set
			{
				this.masterNameList = value;
			}
			
		}
		
		public Hashtable MasterLinkTable
		{
			get
			{
				return this.masterLinkTable;
			}
			
			set
			{
				this.masterLinkTable = value;
			}
			
		}
		
		public string Id
		{
			get
			{
				return id;
			}
			
			set
			{
				this.id = value;
			}
			
		}
		
		public string Caption
		{
			get
			{
				return caption;
			}
			
			set
			{
				this.caption = value;
			}
			
		}
		
		public NamespaceResolver NsResolver
		{
			get
			{
				return nsResolver;
			}
			
			set
			{
				this.nsResolver = value;
			}
			
		}
		
		public string ViewWidth
		{
			get
			{
				return viewWidth;
			}
			
			set
			{
				this.viewWidth = value;
			}
			
		}
		
		public string XslPrefix
		{
			get
			{
				return xslPrefix;
			}
			
			set
			{
				this.xslPrefix = value;
			}
			
		}
		
		public string XdPrefix
		{
			get
			{
				return xdPrefix;
			}
			
			set
			{
				this.xdPrefix = value;
			}
			
		}

		public string XdExtensionPrefix
		{
			get
			{
				return this.xdExtensionPrefix;
			}
			set
			{
				this.xdExtensionPrefix = value;
			}
		}
		
		public CABFile CabFile
		{
			get
			{
				return cabFile;
			}
			
			set
			{
				this.cabFile = value;
			}
			
		}
		
		public string Name
		{
			get
			{
				return name;
			}
			
			set
			{
				this.name = value;
			}
			
		}
		
		public string Transform
		{
			get
			{
				return transform;
			}
			
			set
			{
				this.transform = value;
			}
			
		}
		
		public bool ShowMenuItem {
			get {
				return showMenuItem;
			}
			
			set {
				this.showMenuItem = value;
			}
			
		}

		public XmlDocument Doc
		{
			get
			{
				return doc;
			}
			
			set
			{
				this.doc = value;
			}
			
		}

		public ArrayList RuleButtonList
		{
			get
			{
				return ruleButtonList;
			}
			
			set
			{
				this.ruleButtonList = value;
			}
			
		}

		public string PrintView
		{
			get
			{
				return printView;
			}
			
			set
			{
				this.printView = value;
			}
			
		}

		public bool IsReadonly
		{
			get
			{
				return this.isReadonly;
			}
			
			set
			{
				this.isReadonly = value;
			}
			
		}

		public bool IsPrintView
		{
			get
			{
				return this.isPrintView;
			}
			
			set
			{
				this.isPrintView = value;
			}
			
		}

		public string PrintHeader
		{
			get
			{
				return printHeader;
			}
			
			set
			{
				this.printHeader = value;
			}
			
		}

		public string PrintFooter
		{
			get
			{
				return printFooter;
			}
			
			set
			{
				this.printFooter = value;
			}
			
		}

		public bool Portrait
		{
			get
			{
				return portrait;
			}
			
			set
			{
				this.portrait = value;
			}
			
		}

		public double TopMargin
		{
			get
			{
				return topMargin;
			}
			
			set
			{
				this.topMargin = value;
			}
			
		}

		public double LeftMargin
		{
			get
			{
				return leftMargin;
			}
			
			set
			{
				this.leftMargin = value;
			}
			
		}

		public double BottomMargin
		{
			get
			{
				return bottomMargin;
			}
			
			set
			{
				this.bottomMargin = value;
			}
			
		}

		public double RightMargin
		{
			get
			{
				return rightMargin;
			}
			
			set
			{
				this.rightMargin = value;
			}
			
		}

		//CID 0076 //2008.07.31 //Begin
		public ArrayList ExprBindingList
		{
			get
			{
				return exprBindingList;
			}
			
			set
			{
				this.exprBindingList = value;
			}
			
		}
		//CID 0076 //2008.07.31 //End

		public SDSInView SDSInView
		{
			get
			{
				return this.sdsInView;
			}
		}
		
		public XCTransform Xslt
		{
			get
			{
				return this.xslt;
			}
			set
			{
				this.xslt = value;
			}
		}

		public Menu ContextMenu
		{
			get
			{
				return this.contextMenu;
			}
			set
			{
				this.contextMenu = value;
			}
		}

		public string ContextMenuHtml
		{
			get
			{
				return this.contextMenuHtml;
			}
			set
			{
				this.contextMenuHtml = value;
			}
		}

        public byte[] Content
        {
            get
            {
                return this.content;
            }
            set
            {
                this.content = value;
            }
        }

        public bool HasImpreciseWidthDTPicker
        {
            get
            {
                return this.hasImpreciseWidthDTPicker;
            }
            set
            {
                this.hasImpreciseWidthDTPicker = value;
            }
        }

		private string name = null;
		private string caption = null;
		private string printView = null;
		private string transform = null;
		private XmlDocument doc = null;
		private CABFile cabFile = null;
		private string xdPrefix = null;
		private string xslPrefix = null;
		//CID 0500 //2010.01.19 //Begin
		private string xdExtensionPrefix = null;
		//CID 0500 //2010.01.19 //End
		private NamespaceResolver nsResolver = null;
		private string viewWidth = null;
		private string id = null;
		private bool showMenuItem = false;
		private ArrayList masterNameList = null;
		private Hashtable masterLinkTable = null;
		private Manifest manifest = null;
		private ArrayList ruleButtonList = null;
		private bool isReadonly = false;
		private bool isPrintView = false;
		//CID 0266 //2009.03.31 //Begin
        //CID 0678 //2010.11.03 //Begin
        private XCTransform xslt = null;
        //CID 0678 //2010.11.03 //End
		//CID 0266 //2009.03.31 //End
        //CID 0903 //2011.05.30 //Begin
        private byte[] content = null;
        //CID 0903 //2011.05.30 //End

		//CID 0076 //2008.07.31 //Begin
		//包含所有的绑定表达式.
		private ArrayList exprBindingList = null;
		//CID 0076 //2008.07.31 //End
		//CID 0230 //2009.02.23 //Begin
		private SDSInView sdsInView = new SDSInView();
		//CID 0230 //2009.02.23 //End

		//CID 0284 //2009.05.10 //Begin
		private Menu contextMenu = null;
		private string contextMenuHtml = null;
		//CID 0284 //2009.05.10 //End

        //CID 1171 //2012.04.24 //Begin
        private bool hasImpreciseWidthDTPicker = false;
        //CID 1171 //2012.04.24 //End

		private string printHeader = null;
		private string printFooter = null;
		private bool portrait = true;
		private double topMargin = -1;
		private double leftMargin = -1;
		private double bottomMargin = -1;
		private double rightMargin = -1;

        //CID 1503 //2012.12.19 //Begin
        public List<SignatureLine> SignatureLines
        {
            get;
            set;
        }
        //CID 1503 //2012.12.19 //End
	}
}